Created: 30/03/2020
By: AwsmCreators
Email: awsmcreators@gmail.com
Thank you for purchasing my app. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!
This project is build on android studio so you need to download and install android studio and follow the steps below
Download and install android studio in your pc Download
After installing android studio , you need to click on import existing project to get started
If you face any troubles while installing and setup android studio , i advised you to take a look at android studio official documentation fromj google developer website or find some solution from stack overflow
1. Go To Firebase Console And Register Your App And Debug Keys.
2. Create A Project By Clicking On Create Project
3. Fill the necessary details in the pop up window about the project. Edit the project ID if required.
4. Click on create project to finally create it.
5. Now add android app to this project
6. Now a prompt will open where you need to enter your app details and package name
7. Now the app is connected to the Firebase. Now all the cloud based as well server based services can be easily used in the app.
8. Now the app will be registered with firebase.
10. Now download the google service json file and replace it with the app root directory
11. Click on setup authentication and enable login phone like in the screenshot below and click ok
12. Thats all and one more thing you need to do is create a realtime database by clicking the database tab in firebase console and click on create realtime database(not firestore)
13. Now you need to set rules for the databse that you created just now. in default firebase set the rules to false so no one can acess the databse. we need to enable it. just click on rules tab in realtime databale and set the value to true like in the scrrenshot below
14. ok we are done creating realtime databse. now we need to enable storage in firebase console to save the images and files in cloud storsge. for that just click on storage option from left side panel and you will see something like below iamge
15. Just click on get started and it will begin to create storage for your firebase app
1. To setup call rates , open android studio and go to Variable>Callrates.java here u can see that i inculed all countries and call rates now you can change the value as u like. see example screenshot below
In-App Purchases (IAPs) are a great way to monetize your app. Rather than charging a flat fee to download your app, you can offer access to specific in-app sections. This allows you to offer some content to the general user, but also offer ‘premium’ content/features of your app for a price.
1. Log into your Google Developer account here
https://play.google.com/apps/publish/
2. Click the Settings tab from the menu on the left.
3. Scroll down to the bottom of this page and you’ll see a link to activate your Merchant account.
Note: When you have activated your Merchant account it will look like this.
Now that you’ve activated your Merchant account, you are required to create inapp products from your Google Developer account. Here’s how:
Single In-App Purchases are described as: “A product that is purchased once and does not expire or decrease with use.” This means that there is a one-time charge that will allow the user to access that specific in-app section for the lifetime of your app.
1. Log into your Google Developer account here:
https://play.google.com/apps/publish/
2. Click on your app’s listing
3. Click on In-App Products tab from the menu on the left.
Note: If your app was already live on the Play Store and you are just now including In-App Purchases, the In-App Products section is found under the Store Presence tab of your app’s listing
4. Make sure you have Managed Products selected, then click Create Managed Products.
5. Enter your Product ID Make Sure To Note This Id in Notepad
IMPORTANT: It’s a good idea to enter a Product ID that clearly tells you what in-app section this specific purchase will unlock, because you will need to enter the Product ID on your Variable.java. Also, the Product ID must be composed of lower-case letters ( a-z ), numbers ( 0-9 ), underlines ( _ ), or dots ( . ) without any spaces, and it should start with lower-case letters or numbers.
6. Input your Title and Description, then change the status to Active.
7. Set a Price, then click Save at the bottom of the page.
Now that you have your In-App Purchase created, you need to add the Product ID to your app’s Variable.java to do this go to open android studio and open your project and click on variable.java here you need to enter the the ids which we created just now , public key, merchant id and product id. you can see below screenshot of variable.java where you can put this keys and ids
(UPI) Unified Payments Interface is an instant real-time payment system developed by National Payments Corporation of India facilitating inter-bank transactions. The interface is regulated by the Reserve Bank of India and works by instantly transferring funds between two bank accounts on a mobile platform
Note: Non Indian Buyer Can Diable UPI Payment In Android Studio And Use Only Google Play Billing This Works Everywhere In The World
How to Register for HDFC UPI
Please note that an m-PIN is a password that the user will have to provide each time he/she logs into the app And also note your upi name and upi adress we need to put this in variable.java like in the screenshot below.
When someone clicking on upi purchase option in your app they will enter into any upi app they have instal in their phone and they will promt to pay the amount when they click on pay buton , upi will transefer the payment to your upi adress that you have provided and you will receive the payment directly to your bank account which you linked with your upi adress
In order to get api calls sucessfully from firebase console , u need to generate sha1 key and put it on firebase console so if you dont do this step , some of the features like phone authentication wont work so this step is importent. follow the steps carefully that i provided below
1. Create keystore in android studio with your detials like full name and adress , ect and create build a signed apk
2. Now save the keystore somewhere in your computer
3. Now download and install the Keystore exploder in your computer , this software available for windows and mac . i provided download link below
4. After installing the software in your pc , the keystore exploder interface look link in the screenshot. what u need to do is just click on Open an existing keystore and select the keystore that u saved in your computer and it will ask for keystore password. just enter it
4. Enter the keystore password and click ok
5. After enter the password u will see something like in the screenshot below, just double click on the keystore file
6. Now you can see all your keystore information in this page, you will need the sha1 key only so u can see at last columm that i green marked. that is the sha1 fingerprint.
7 Now take a note of this sha1 fingerprint key and open firebase console and click on app settings and you will see something like below screenshot
8. Just click on ADD FINGERPRIT And paste the sha1 key that u noted from the keystore exploader. thats all you are done. now you can run your app and test the phone authentication.
AwsmCreators